import hashlib
import time
import requests

#
# 示例代码
# Python3
# 联系qq：2937743421
#

uid = "******替换为你自己的UID******"    # uid 用户标识
key = "******替换为你自己的授权KEY******"    # 授权key（只用作签名计算）
timestamp = int(time.time() * 1000)         # 当前时间戳-毫秒
# 计算签名（字符串拼接后md5）
signature = hashlib.md5((uid+str(timestamp)+key).encode(encoding='UTF-8')).hexdigest()

params = {
    "uid": uid,
    "url": "www.ko543.com",    # 要检测的域名或链接
    "timestamp": timestamp,
    "signature": signature
}
# 发起请求
resp = requests.post(url="http://weixin.51splus.com/v1/weixin", params=params)
print(resp.text)

